package com.example.shopping.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.shopping.pojo.domain.OrderBean;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Dream
 * @version 1.0
 * @date 2020/11/9 11:46
 */
@Mapper
@Component
public interface OrderDao extends BaseMapper<OrderBean>{
    /**
     * 根据用户账号查询订单
     * @param userXh
     * @return
     */
    List<OrderBean> getByXh(String userXh);

    /**
     * 添加订单
     * @param orderBean
     */
    void addOrder(OrderBean orderBean);
}
